<!-- eslint-disable vue/multi-word-component-names -->
<!-- eslint-disable vue/no-mutating-props -->
<template>
    <labelArea label="控制器参数">
        <el-form size="small" label-suffix=" :">
            <!-- <el-form-item label="源">
                <el-select v-model="config.source">
                    <el-option label="内部" :value="1"></el-option>
                    <el-option label="外部" :value="2"></el-option>
                </el-select>
            </el-form-item> -->
            <!-- <el-form-item v-if="config.source == 1" label="X_VEC" inline>
                <el-input v-model="data.X_VEC" placeholder=""></el-input>
                <ctcheckbox v-model="data.ZeroCross">Use I*Ts(optimal for codegen)</ctcheckbox>
            </el-form-item> -->
            <el-form-item label="P_VEC">
                <el-input v-model="data.P_VEC" placeholder=""></el-input>
            </el-form-item>
            <el-form-item label="I_VEC">
                <el-input v-model="data.I_VEC" placeholder=""></el-input>
            </el-form-item>
            <el-form-item label="D_VEC">
                <el-input v-model="data.D_VEC" placeholder=""></el-input>
            </el-form-item>
            <el-form-item label="N" inline>
                <el-input v-model="data.N" placeholder=""></el-input>
                <ctcheckbox v-model="data.UseFilter">使用滤波导数</ctcheckbox>
            </el-form-item>
        </el-form>
    </labelArea>
    <!-- <labelArea v-if="config.source == 1" label="自动调节">
        <el-form size="small" label-suffix=" :">
            <el-form-item label="选择调节方法" inline>
                <el-select v-model="config.source">
                    <el-option label="内部" :value="1"></el-option>
                    <el-option label="外部" :value="2"></el-option>
                </el-select>
                <el-button>调节...</el-button>
            </el-form-item>
        </el-form>
    </labelArea> -->


    <ctcheckbox v-model="data.ZeroCross">启用过零检测</ctcheckbox>
</template>

<script setup>
const { data, config } = defineProps(['data', 'config'])

</script>


<style scoped></style>